package com.lsl.abstract_factory.listfactory;

import com.lsl.abstract_factory.factory.Link;

/**
 * @author Zed
 * @description
 * @date 2022/11/27 18:25
 */
public class ListLink extends Link {
    public ListLink(String caption, String url) {
        super(caption, url);
    }

    @Override
    public String makeHTML() {
        return " <li><a href=\"" + url + "\">" + caption + "</a></li>\n";
    }
}
